import { ProfileGrid } from '@/pages/User/UserInfo/Component/ProfileGrid';
// @ts-ignore
import { Card, Image } from 'antd';
// @ts-ignore
import React from 'react';

interface IProps {
  userData: API.UserInfoProps;
  setOpenForm: (value: boolean) => void;
}
const InformationCard: React.FC<IProps> = ({ userData, setOpenForm }) => {
  return (
    <div>
      <Card
        cover={
          <Image
            style={{ width: '100%', height: '50%' }}
            src={
              'https://xiaoxiaobaiyang.oss-cn-shenzhen.aliyuncs.com/mylibrary/web-image/banner3.jpg'
            }
          />
        }
      >
        {/*用户信息*/}
        <ProfileGrid setOpenForm={setOpenForm} userData={userData} />
      </Card>
    </div>
  );
};

export default InformationCard;
